package com.study.service.fallback;

import com.study.pojo.Video;
import com.study.service.OrderService;
import org.springframework.stereotype.Service;

//实现接口
@Service
public class OrderServiceFallBack implements OrderService {
    //假设调用视频服务宕机，此处准备一个默认的视频返回
    @Override
    public Video findById(int videoId) {
        Video video = new Video();
        video.setTitle("熔断降级数据");
        return video;
    }
    @Override
    public void insert(Video video) {

    }
}
